import 'package:chatgreat/repo/api_server.dart';
import 'package:chatgreat/repo/model/misc.dart';
import 'package:bloc/bloc.dart';
import 'package:meta/meta.dart';

part 'version_event.dart';
part 'version_state.dart';

class VersionBloc extends Bloc<VersionEvent, VersionState> {
  VersionBloc() : super(VersionInitial()) {
    on<VersionCheckEvent>((event, emit) async {
      emit(VersionInitial());

      //TODO: 版本更新 暂时不用
      // final version = await APIServer().versionCheck();
      // emit(VersionCheckLoaded(version));
    });
  }
}
